/// 个人信息
class UserInfo {
  int? userId;
  int? needChangePassword;
  String? username;
  String? fullName;
  String? wechatOpenId;
  String? wechatNickName;
  String? logo;
  String? mobile;

  UserInfo({
    this.userId,
    this.needChangePassword,
    this.username,
    this.fullName,
    this.wechatOpenId,
    this.wechatNickName,
    this.logo,
    this.mobile,
  });

  UserInfo.fromJson(Map<String, dynamic>? json)
      : userId = json?['id'],
        needChangePassword = json?['need_change_password'],
        username = json?['username'],
        fullName = json?['full_name'],
        wechatOpenId = json?['wechat_open_id'],
        wechatNickName = json?['wechat_nick_name'],
        logo = json?['logo'],
        mobile = json?['mobile'];

  Map<String, dynamic> toJson() => <String, dynamic>{
        'id': userId,
        'need_change_password': needChangePassword,
        'username': username,
        'full_name': fullName,
        'wechat_open_id': wechatOpenId,
        'wechat_nick_name': wechatNickName,
        'logo': logo,
        'mobile': mobile,
      };
}
